package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 会员收货地址表
 * </p>
 *
 * @author Lbx
 * @since 2024-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdMemberAddress对象", description="会员收货地址表")
public class JdMemberAddress extends Model<JdMemberAddress> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String memberId;

    @ApiModelProperty(value = "收货人姓名")
    private String buyerName;

    @ApiModelProperty(value = "收货人手机号码")
    private String buyerPhone;

    @ApiModelProperty(value = "所属省份编码")
    private Integer provinceCode;

    @ApiModelProperty(value = "所属城市编码")
    private Integer cityCode;

    @ApiModelProperty(value = "所属区域编码")
    private Integer areaCode;

    private String provinceName;

    private String cityName;

    private String areaName;

    @ApiModelProperty(value = "详细地址")
    private String addressDetail;

    @ApiModelProperty(value = "是否默认( 0否  1是 )")
    private String defaultFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
